package com.cw.DesignModel23.Ceational.BuilderPattern.builder1;

public class Main {
    public static void main(String[] args) {
        // 创建学生对象建造者
        StudentBuilder studentBuilder = new StudentBuilderImpl();
        // 创建教师对象
        Teacher teacher = new Teacher(studentBuilder);

        // 教师对象使用学生建造者创建学生 实例对象
        Student student = teacher.makeStudent(
                "小明",
                "12" ,
                "s1",
                "学院路",
                "第一小学");

        System.out.println(student);
    }
}
